package com.eoiiioe.model.two;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class ZhbLoginActivity extends Activity implements OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_login);

        initView();
    }

    private void initView() {
        EditText et_login_user = (EditText) findViewById(R.id.et_login_user);
        EditText et_login_pwd = (EditText) findViewById(R.id.et_login_pwd);

        findViewById(R.id.bt_goto_login).setOnClickListener(this);
        findViewById(R.id.bt_goto_register).setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
        case R.id.bt_goto_login:
            startActivity(new Intent(this, MainActivity.class));
            break;
        case R.id.bt_goto_register:
            startActivity(new Intent(this, ZhbRegisterActivity.class));
            break;
        default:
            break;
        }

    }
}
